<?php
namespace haibao\cms\model\data;

Class InteractiveResource extends Base{
	const TYPE_WEIXIN = 2;
	const TYPE_FWMA = 3;
	const TYPE_WEIBO = 4;
	const TYPE_BBS = 1;
	const TYPE_MEIJU = 5;
	const TYPE_VIDEO = 6;
	
	const COUNT_LIMIT_WEIXIN = 4;
	const COUNT_LIMIT_FWMA = 2;
	const COUNT_LIMIT_WEIBO = 5;
	
	const STATUS_NOT_SEND = 0;
	const STATUS_SEND = 1;
	
	public $ResourceType;
	public $ResourceDate;
	public $BrandName;
	public $Describe;
	public $Director;
	public $Status;
	public $ContentLink;
	public $CreateTime;
	public $CreateBy;

	public function __construct(){
		parent::__construct();

		$this->intField('ResourceType', 'ResourceType',true);
		$this->dateField('ResourceDate', 'ResourceDate',true);
		$this->stringField('BrandName', 'BrandName',true);
		$this->stringField('Describe', 'Describe',false);
		$this->intField('Director', 'Director',true);
		$this->intField('Status', 'Status',true);
		$this->stringField('ContentLink', 'ContentLink',false);
		$this->dateField('CreateTime', 'CreateTime');
		$this->intField('CreateBy', 'CreateBy',true);
		
		$this->setTableName('InteractiveResource');
	}
}